package flyweight

import "strings"

type tMockTicket struct {
	iID int
	sFrom string
	sTo string
	sLeavingTime string
	sArrivalTime string
	mInterList []string
	fPrice float64
	iRemaining int
}

func NewMockTicket(id int, from string, to string, price float64) *tMockTicket {
	return &tMockTicket{
		iID: id,
		sFrom: from,
		sTo: to,
		sLeavingTime: "09:00",
		sArrivalTime: "11:30",
		mInterList: strings.Split("深圳北,虎门", ","),
		fPrice: price,
	}
}

func (me *tMockTicket) ID() int {
	return me.iID
}


func (me *tMockTicket) From() string {
	return me.sFrom
}

func (me *tMockTicket) To() string {
	return me.sTo
}

func (me *tMockTicket) LeavingTime() string {
	return me.sLeavingTime
}

func (me *tMockTicket) ArrivalTime() string {
	return me.sArrivalTime
}


func (me *tMockTicket) InterList() []string {
	return me.mInterList
}


func (me *tMockTicket) Price() float64 {
	return me.fPrice
}